export function hasPermission (role) {
    let userRole = window.localStorage.getItem('role'); // 获取用户角色，默认1或2
    let UserRole = userRole === '1' ? 'admin' : 'user'; //获取用户角色名称
	return role.includes(UserRole);
}